<template>
  <div class="cofirmorder-subsku-cell">
    <div class="cofirmorder-subsku-cell__line">
      <div>
        <span>{{showpsfname}} {{showpsfname2}}</span>
      </div>
      <div>
        <span>共{{model.detailrnumber}}{{model.pdunit}},</span>
        <span class="mk-price">{{model.detailtotal | math-mul(discount) | math-round(2,1) |math-money}}</span>
      </div>
    </div>
    <div class="cofirmorder-subsku-cell__line">
      <div>
        <span>单价:{{model.psprice | math-mul(discount) | math-round(2,1) | math-money}}/{{model.pdunit}}</span>
      </div>
      <div>
      </div>
    </div>
    <div class="cofirmorder-subsku-cell__seperate"></div>
  </div>
</template>

<style lang="stylus" scoped>
.cofirmorder-subsku-cell {
  margin: 20px;

  .cofirmorder-subsku-cell__line {
    padding: 21px;
    background-color: #F8F8F8;
    display: flex;
    justify-content: space-between;
    flex-direction: row;

    span {
      font-family: PingFangSC-Regular;
      font-size: 26px;
      color: #999999;
      line-height: 36px;
    }
  }
}
</style>
<script>
export default {
  name: 'cofirmorder-subsku-cell',
  mixins: [],
  data () {
    return {}
  },
  props: {
    model: {
      type: Object
    },
    index: {
      type: Number
    },
    discount: {
      type: Number
    }
  },
  computed: {
    showpsfname () {
      if (this.model.psfname) {
        return this.model.psfname + ':' + this.model.psvalue
      } else {
        return '无规格'
      }
    },
    showpsfname2 () {
      if (this.model.psfname2) {
        return this.model.psfname2 + ':' + this.model.psvalue2
      } else {
        return ''
      }
    }
  },
  mounted () {
  },
  watch: {},
  methods: {}
}
</script>
